/**
 * refactoring by zhouli on 2019/3/14.
 * 试用账号注册入口(左下角)
 */
import React from 'react';
import {connect} from 'react-redux';
import {messages} from 'share/common';
import 'styles/main/components/try-register.scss';

class TryRegister extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
    }
  }
  componentDidMount() {
  }
  goToRegister = () => {

    window.location.href = "/register/"
  };
  render() {
    return (<div className="right-now-register">
      <a className="register-btn" href="https://www.huilianyi.com/trial2?type=try" target="_blank">
        {messages('dashboard.key172')/*立即注册*/}
      </a>
    </div>);
  }
}

TryRegister.defaultProps = {};

TryRegister.contextTypes = {
  router: React.PropTypes.object
};

function mapStateToProps(state) {
  return {
    user: state.login.user,
  }
}

export default connect(mapStateToProps)(TryRegister);

